﻿using System;
using System.Threading;
using Zack.Tools.Extension;

namespace TestConsoleApplication
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            #region 线程池设置

            int maxThreadNum, portThreadNum;

            int minThreadNum;

            ThreadPool.GetMaxThreads(out maxThreadNum, out portThreadNum);

            ThreadPool.GetMinThreads(out minThreadNum, out portThreadNum);

            Console.WriteLine("最大线程数：{0}", maxThreadNum);

            Console.WriteLine("最小空闲线程数：{0}", minThreadNum);

            #endregion

           // TestClass.InsertRecord();
            //TestClass.Insert1000Record();
            TestClass.Query1000RecordNoWhere();
            TestClass.helper.Dispose();


         
















            Console.Read();
        }
    }
}